﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="personal.aspx.cs" Inherits="PopWin_personal" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>个人信息修改</title>
    <link rel="stylesheet" type="text/css" href="../CSS/Style.css"/>
   	<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>  
	<script type="text/javascript">
function check(){
    if($("#txtname").val()==""){
       $("#txtname").focus();
      showwarning("姓名不能为空！"); 
    return false;}
    if($("#txtfield").val()==""){
       $("#txtfield").focus();
    return false;}
    if($("#txtcell").val()==""){
       $("#txtcell").focus();
    return false;}
    if($("#txtemail").val()==""){
       $("#txtemail").focus();
    return false;}
return true;
}
function showwarning(message){
//$("#warning").attr("src","../js/themes/default/images/validatebox_warning.png");
$("#note").text(message);
$("#note").css("color","red");
}
</script>
<style type="text/css">
th { 
color: #4f6b72; 
border-right: 1px solid #C1DAD7; 
border-bottom: 1px solid #C1DAD7; 
border-top: 1px solid #C1DAD7; 
letter-spacing: 2px; 
text-transform: uppercase; 
text-align: left; 
padding: 6px 6px 6px 6px; 
background: #CAE8EA no-repeat; 
} 
th.nobg { 
border-top: 0; 
border-left: 0; 
border-right: 1px solid #C1DAD7; 
background: none; 
} 

td { 
border-right: 1px solid #C1DAD7; 
border-bottom: 1px solid #C1DAD7; 
background: #fff; 
font-size:12px; 
padding: 6px 6px 6px 6px; 
color: #4f6b72; 
} 
} 
</style>  
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table  border="0" cellpadding="0" cellspacing="0" style="width:582px;" >
            <tr>
                <th colspan="4">
                    您目前的身份是<asp:Label ID="labIdentity" runat="server" Text="普通用户"></asp:Label></th>
            </tr>
            <tr>
                <th class="nobg" style="width:100px">
                    工号(用户名)</th>
                <td style="width: 160px">
                    <asp:Label ID="labID" runat="server"></asp:Label></td>
                <th class="nobg" style="width: 90px">
                    职称</th>
                <td  style="width: 160px">
                    <asp:DropDownList ID="ddltitle" runat="server" Width="155px">
                        <asp:ListItem>助教</asp:ListItem>
                        <asp:ListItem>讲师</asp:ListItem>
                        <asp:ListItem>副教授</asp:ListItem>
                        <asp:ListItem>教授</asp:ListItem>
                        <asp:ListItem>技术员</asp:ListItem>
                        <asp:ListItem>助理工程师</asp:ListItem>
                        <asp:ListItem>工程师</asp:ListItem>
                        <asp:ListItem>高级工程师</asp:ListItem>
                        <asp:ListItem>研究实习员</asp:ListItem>
                        <asp:ListItem>助理研究员</asp:ListItem>
                        <asp:ListItem>副研究员</asp:ListItem>
                        <asp:ListItem>研究员</asp:ListItem>
                        <asp:ListItem>实验员</asp:ListItem>
                        <asp:ListItem>助理实验师</asp:ListItem>
                        <asp:ListItem>实验师</asp:ListItem>
                        <asp:ListItem>高级实验师</asp:ListItem>
                        <asp:ListItem>其它</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <th class="nobg">
                    姓名</th>
                <td>
                    <asp:TextBox ID="txtname" runat="server" MaxLength="20"></asp:TextBox></td>
                <th class="nobg">
                    固定电话</th>
                <td>
                    <asp:TextBox ID="txttel" runat="server" MaxLength="13"></asp:TextBox></td>
            </tr>
            <tr>
                <th class="nobg">
                    性别</th>
                <td>
                    <asp:RadioButton ID="radsex1" runat="server" Text="男" GroupName="sex" />
                    <asp:RadioButton ID="radsex2" runat="server" Text="女" GroupName="sex" /></td>
                <th class="nobg">
                    手机</th>
                <td>
                    <asp:TextBox ID="txtcell" runat="server" MaxLength="11"></asp:TextBox></td>
            </tr>
            <tr>
                <th class="nobg">
                    学院(部门)</th>
                <td>
                    <asp:DropDownList ID="ddlCollege" runat="server" Width="155px">
                    </asp:DropDownList></td>
                <th class="nobg">
                    e-mail</th>
                <td>
                    <asp:TextBox ID="txtemail" runat="server" MaxLength="100"></asp:TextBox></td>
            </tr>
            <tr>
                <th class="nobg">
                    专业</th>
                <td>
                    <asp:TextBox ID="txtfield" runat="server" MaxLength="50"></asp:TextBox></td>
                <th class="nobg" rowspan="2" style="vertical-align:top;">
                    个人简介<br />
                    (150字内)</th>
                <td rowspan="3" style="vertical-align:top;">
                    <asp:TextBox ID="txtremark" runat="server" Height="88px" TextMode="MultiLine"></asp:TextBox></td>
            </tr>
            <tr>
                <th class="nobg">
                    学历</th>
                <td>
                    <asp:DropDownList ID="ddlbg" runat="server" Width="155px">
                        <asp:ListItem>博士研究生</asp:ListItem>
                        <asp:ListItem>硕士研究生</asp:ListItem>
                        <asp:ListItem>本科</asp:ListItem>
                        <asp:ListItem>专科</asp:ListItem>
                        <asp:ListItem>中专</asp:ListItem>
                        <asp:ListItem>其它</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <th class="nobg" colspan="3" style="text-align:center;">
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                    <asp:Button ID="btnSubmit" runat="server" Text="修改信息" OnClick="btnSubmit_Click" OnClientClick="return check();" CssClass="btn-dy-blue" />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </th>
            </tr>
        </table>
    </div>
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <div id="note" runat="server" style="background: #FFFCC9;border: 1px solid #FFD667; width:580px;"><img id="warning"  src="../Images/Warning.png" alt="提示" />
   <span>提示：您的工号（用户名）不能修改。若想修改请联系系统管理员，主页上有联系信息。</span> </div> 
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
